home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.html;
-
- import java.util.Vector;
- import javax.swing.text.MutableAttributeSet;
- import javax.swing.text.html.HTML.Attribute;
-
- class HTMLDocument$HTMLReader$LinkAction extends HTMLDocument.HTMLReader.HiddenAction {
- // $FF: synthetic field
- private final HTMLDocument.HTMLReader this$1;
-
- HTMLDocument$HTMLReader$LinkAction(HTMLDocument.HTMLReader var1) {
- super(var1);
- this.this$1 = var1;
- }
-
- public void start(HTML.Tag var1, MutableAttributeSet var2) {
- String var3 = (String)var2.getAttribute(Attribute.REL);
- if (var3 != null) {
- var3 = var3.toLowerCase();
- if (var3.equals("stylesheet") || var3.equals("alternate stylesheet")) {
- if (this.this$1.styles == null) {
- this.this$1.styles = new Vector(3);
- }
-
- this.this$1.styles.addElement(var1);
- this.this$1.styles.addElement(var2.copyAttributes());
- }
- }
-
- super.start(var1, var2);
- }
- }
-